import { NetWork_Post, NetWork_Get } from './commonServer'

function getTodayMatchTask(bodydata, callback) {
  let netapi = 'getTodayMatchTask',
    reqError = {
      error: {
        code: '-1',
        msg: '获取数据失败'
      }
    }
  NetWork_Post(netapi, bodydata, callback, reqError)
}

function getTodayCheckTask(bodydata, callback) {
  let netapi = 'getTodayCheckTask',
    reqError = {
      error: {
        code: '-1',
        msg: '获取数据失败'
      }
    }
  NetWork_Post(netapi, bodydata, callback, reqError)
}

function getAdviseVoByQrNo(bodydata, callback) {
  let netapi = 'getAdviseVoByQrNo',
    reqError = {
      error: {
        code: '-1',
        msg: '获取数据失败'
      }
    }
  NetWork_Post(netapi, bodydata, callback, reqError)
}

function submitMatchTask(bodydata, callback) {
  let netapi = 'submitMatchTask',
    reqError = {
      error: {
        code: '-1',
        msg: '提交配药失败'
      }
    }
  NetWork_Post(netapi, bodydata, callback, reqError)
}

function submitCheckTask(bodydata, callback) {
  let netapi = 'submitCheckTask',
    reqError = {
      error: {
        code: '-1',
        msg: '提交复核配药失败'
      }
    }
  NetWork_Post(netapi, bodydata, callback, reqError)
}

function getTodayFinishCheckTask(bodydata, callback) {
  let netapi = 'getTodayFinishCheckTask',
    reqError = {
      error: {
        code: '-1',
        msg: '获取数据失败'
      }
    }
  NetWork_Post(netapi, bodydata, callback, reqError)
}

function getTodayFinishMatchTask(bodydata, callback) {
  let netapi = 'getTodayFinishMatchTask',
    reqError = {
      error: {
        code: '-1',
        msg: '获取数据失败'
      }
    }
  NetWork_Post(netapi, bodydata, callback, reqError)
}

export {
  getTodayMatchTask,
  getTodayCheckTask,
  getAdviseVoByQrNo,
  submitMatchTask,
  submitCheckTask,
  getTodayFinishCheckTask,
  getTodayFinishMatchTask
}
